/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     Mcu_Xtal.h                                                                                *
 *  \brief    This file contains interface header for MCU MCAL driver, ...                              *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/03     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef MCU_XTAL_H
#define MCU_XTAL_H

#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
 *                                      Include header files                                            *
 *******************************************************************************************************/
#include "Std_Types.h"

/********************************************************************************************************
 *                                  Global Function Declarations                                        *
 *******************************************************************************************************/
/** *****************************************************************************************************
 * \brief This function switch FS32K from RC to xtal.
 *
 * \verbatim
 * Syntax             : Std_ReturnType Mcu_Ip_Fs32KTrySwitchToXtal(void)
 *
 * Service ID[hex]    : /
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : Non reentrant
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : ErrId
 *
 * Description        : This function switch FS32K from RC to xtal.
 * \endverbatim
 * Traceability       : SW_SM005
 *******************************************************************************************************/
Std_ReturnType Mcu_Ip_Fs32KTrySwitchToXtal(void);

/** *****************************************************************************************************
 * \brief This function switch FS32K from xtal to RC.
 *
 * \verbatim
 * Syntax             : Std_ReturnType Mcu_Ip_Fs32KTrySwitchToRC(void)
 *
 * Service ID[hex]    : /
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : Non reentrant
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : ErrId
 *
 * Description        : This function switch FS32K from xtal to RC.
 * \endverbatim
 * Traceability       : SW_SM005
 *******************************************************************************************************/
Std_ReturnType Mcu_Ip_Fs32KTrySwitchToRC(void);


/** *****************************************************************************************************
 * \brief This function switch FS24M from RC to xtal.
 *
 * \verbatim
 * Syntax             : Std_ReturnType Mcu_Ip_Fs24MTrySwitchToXtal(void)
 *
 * Service ID[hex]    : /
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : Non reentrant
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : ErrId
 *
 * Description        : This function switch FS24M from RC to xtal.
 * \endverbatim
 * Traceability       : SW_SM005
 *******************************************************************************************************/
Std_ReturnType Mcu_Ip_Fs24MTrySwitchToXtal(void);

/** *****************************************************************************************************
 * \brief This function switch FS24M from xtal to RC.
 *
 * \verbatim
 * Syntax             : Std_ReturnType Mcu_Ip_Fs24MTrySwitchToRC(void)
 *
 * Service ID[hex]    : /
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : Non reentrant
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : ErrId
 *
 * Description        : This function switch FS24M from xtal to RC.
 * \endverbatim
 * Traceability       : SW_SM005
 *******************************************************************************************************/
Std_ReturnType Mcu_Ip_Fs24MTrySwitchToRC(void);

#endif /* MCU_XTAL_H */
/* End of file */
